{ //=========Macro generated from canvas: cptdiff/ //========= (Wed Feb 25 09:50:53 2009) by ROOT version5.14/00f TCanvas *cptdiff = new TCanvas("cptdiff", "",5,22,800,800); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); cptdiff->Range(-0.604248,0.702703,2.92587,1.24324); cptdiff->SetFillColor(10); cptdiff->SetBorderMode(0); cptdiff->SetBorderSize(2); cptdiff->SetLogx(); cptdiff->SetTickx(); cptdiff->SetTicky(); cptdiff->SetLeftMargin(0.2); cptdiff->SetRightMargin(0.08); cptdiff->SetTopMargin(0.08); cptdiff->SetBottomMargin(0.2); cptdiff->SetFrameFillColor(0); cptdiff->SetFrameLineWidth(2); cptdiff->SetFrameBorderMode(0); cptdiff->SetFrameLineWidth(2); cptdiff->SetFrameBorderMode(0); TGraphErrors *gre = new TGraphErrors(19); gre->SetName("difgld"); gre->SetTitle("difgld"); gre->SetFillColor(1); gre->SetLineColor(2); gre->SetLineWidth(2); gre->SetMarkerColor(2); gre->SetMarkerStyle(20); gre->SetMarkerSize(1.3); gre->SetPoint(0,1.1006,1.05428); gre->SetPointError(0,0,0.0135202); gre->SetPoint(1,2.10301,1.06041); gre->SetPointError(1,0,0.0116914); gre->SetPoint(2,3.10386,1.02988); gre->SetPointError(2,0,0.0100868); gre->SetPoint(3,4.1043,1.04787); gre->SetPointError(3,0,0.009863); gre->SetPoint(4,5.10457,1.03826); gre->SetPointError(4,0,0.00991955); gre->SetPoint(5,6.10474,1.01614); gre->SetPointError(5,0,0.00963444); gre->SetPoint(6,7.10487,1.01252); gre->SetPointError(6,0,0.0094685); gre->SetPoint(7,8.10497,1.01559); gre->SetPointError(7,0,0.00939818); gre->SetPoint(8,10.1051,1.00047); gre->SetPointError(8,0,0.00953329); gre->SetPoint(9,20.1054,0.986288); gre->SetPointError(9,0,0.00862681); gre->SetPoint(10,30.1055,0.971289); gre->SetPointError(10,0,0.009292); gre->SetPoint(11,40.1055,0.980401); gre->SetPointError(11,0,0.00897848); gre->SetPoint(12,60.1056,0.989349); gre->SetPointError(12,0,0.008486); gre->SetPoint(13,70.1056,0.991695); gre->SetPointError(13,0,0.00828531); gre->SetPoint(14,80.1056,0.984121); gre->SetPointError(14,0,0.00835564); gre->SetPoint(15,100.106,0.984279); gre->SetPointError(15,0,0.00833692); gre->SetPoint(16,200.106,0.976569); gre->SetPointError(16,0,0.0081407); gre->SetPoint(17,300.106,0.984222); gre->SetPointError(17,0,0.00852888); gre->SetPoint(18,400.106,0.979318); gre->SetPointError(18,0,0.00781755); TH1 *_h21 = new TH1F("_h21","#\sigma_{1/p_T} difference, w. B dependent Cd",100,0.99054,440.007); _h21->SetMinimum(0.8); _h21->SetMaximum(1.2); _h21->SetDirectory(0); _h21->SetStats(0); _h21->SetLineWidth(2); _h21->SetMarkerStyle(20); _h21->SetMarkerSize(1.3); _h21->GetXaxis()->SetTitle("p_{T}/GeV"); _h21->GetXaxis()->SetNdivisions(506); _h21->GetXaxis()->SetLabelOffset(0.01); _h21->GetXaxis()->SetLabelSize(0.06); _h21->GetXaxis()->SetTitleSize(0.07); _h21->GetXaxis()->SetLabelOffset(0.015); _h21->GetXaxis()->SetTitleOffset(1.2); _h21->GetYaxis()->SetTitle("#\sigma_{1/p_{T}}/mean"); _h21->GetYaxis()->SetNdivisions(506); _h21->GetYaxis()->SetLabelOffset(0.015); _h21->GetYaxis()->SetLabelSize(0.06); _h21->GetYaxis()->SetTitleSize(0.07); _h21->GetYaxis()->SetTitleOffset(1.1); _h21->GetZaxis()->SetLabelOffset(0.015); _h21->GetZaxis()->SetLabelSize(0.06); _h21->GetZaxis()->SetTitleSize(0.07); _h21->GetZaxis()->SetTitleOffset(1.1); gre->SetHistogram(_h21); gre->Draw("pla"); gre = new TGraphErrors(19); gre->SetName("difgldprim"); gre->SetTitle("difgldprim"); gre->SetFillColor(1); gre->SetLineColor(1); gre->SetLineWidth(2); gre->SetMarkerColor(1); gre->SetMarkerStyle(21); gre->SetMarkerSize(1.3); gre->SetPoint(0,1.1006,1.01297); gre->SetPointError(0,0,0.014016); gre->SetPoint(1,2.10301,1.02998); gre->SetPointError(1,0,0.0114994); gre->SetPoint(2,3.10386,1.02298); gre->SetPointError(2,0,0.009801); gre->SetPoint(3,4.1043,1.01777); gre->SetPointError(3,0,0.00979216); gre->SetPoint(4,5.10457,1.01701); gre->SetPointError(4,0,0.00971431); gre->SetPoint(5,6.10474,1.02738); gre->SetPointError(5,0,0.00983481); gre->SetPoint(6,7.10487,1.02918); gre->SetPointError(6,0,0.0095143); gre->SetPoint(7,8.10497,1.02777); gre->SetPointError(7,0,0.00935877); gre->SetPoint(8,10.1051,1.06701); gre->SetPointError(8,0,0.0095288); gre->SetPoint(9,20.1054,1.00457); gre->SetPointError(9,0,0.00888531); gre->SetPoint(10,30.1055,1.01244); gre->SetPointError(10,0,0.00888002); gre->SetPoint(11,40.1055,0.996981); gre->SetPointError(11,0,0.00881777); gre->SetPoint(12,60.1056,0.984337); gre->SetPointError(12,0,0.00826018); gre->SetPoint(13,70.1056,0.978989); gre->SetPointError(13,0,0.0085183); gre->SetPoint(14,80.1056,0.987279); gre->SetPointError(14,0,0.00819008); gre->SetPoint(15,100.106,0.989501); gre->SetPointError(15,0,0.00807311); gre->SetPoint(16,200.106,0.992615); gre->SetPointError(16,0,0.00837277); gre->SetPoint(17,300.106,0.96826); gre->SetPointError(17,0,0.0100393); gre->SetPoint(18,400.106,0.980809); gre->SetPointError(18,0,0.0081233); gre->Draw("pl"); gre = new TGraphErrors(19); gre->SetName("difj4ldc"); gre->SetTitle("difj4ldc"); gre->SetFillColor(1); gre->SetLineColor(4); gre->SetLineWidth(2); gre->SetMarkerColor(4); gre->SetMarkerStyle(24); gre->SetMarkerSize(1.3); gre->SetPoint(0,1.1006,0.924573); gre->SetPointError(0,0,0.0137815); gre->SetPoint(1,2.10301,0.931317); gre->SetPointError(1,0,0.0101794); gre->SetPoint(2,3.10386,0.950903); gre->SetPointError(2,0,0.00950328); gre->SetPoint(3,4.1043,0.935995); gre->SetPointError(3,0,0.00950177); gre->SetPoint(4,5.10457,0.95359); gre->SetPointError(4,0,0.00905089); gre->SetPoint(5,6.10474,0.962627); gre->SetPointError(5,0,0.00907808); gre->SetPoint(6,7.10487,0.964482); gre->SetPointError(6,0,0.00881332); gre->SetPoint(7,8.10497,0.964811); gre->SetPointError(7,0,0.00854107); gre->SetPoint(8,10.1051,0.949168); gre->SetPointError(8,0,0.00832431); gre->SetPoint(9,20.1054,1.01045); gre->SetPointError(9,0,0.00901541); gre->SetPoint(10,30.1055,1.01225); gre->SetPointError(10,0,0.00884844); gre->SetPoint(11,40.1055,1.02347); gre->SetPointError(11,0,0.00917349); gre->SetPoint(12,60.1056,1.02886); gre->SetPointError(12,0,0.00873447); gre->SetPoint(13,70.1056,1.03043); gre->SetPointError(13,0,0.0086702); gre->SetPoint(14,80.1056,1.03096); gre->SetPointError(14,0,0.00862608); gre->SetPoint(15,100.106,1.02772); gre->SetPointError(15,0,0.00848695); gre->SetPoint(16,200.106,1.03438); gre->SetPointError(16,0,0.00865339); gre->SetPoint(17,300.106,1.03687); gre->SetPointError(17,0,0.00869324); gre->SetPoint(18,400.106,1.047); gre->SetPointError(18,0,0.00860556); gre->Draw("pl"); TLegend *leg = new TLegend(0.27,0.71,0.5,0.9,NULL,"brNDC"); // leg->SetTextFont(22); leg->SetTextSize(0.043); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetFillColor(1); leg->SetFillStyle(0); leg->SetBorderSize(0); TLegendEntry *entry=leg->AddEntry("NULL","GLD","ple"); entry->SetLineColor(2); entry->SetLineStyle(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","GLDPrime","ple"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","GLD4LDC","ple"); entry->SetLineColor(4); entry->SetLineStyle(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(24); entry->SetMarkerSize(1.25); entry->SetTextAlign(12); entry->SetTextColor(1); leg->Draw(); TLegend *leg1 = new TLegend(0.5,0.69,0.6,0.89,NULL,"brNDC"); // leg->SetTextFont(22); leg1->SetTextSize(0.032); leg1->SetLineColor(1); leg1->SetLineStyle(1); leg1->SetFillColor(1); leg1->SetFillStyle(0); leg1->SetBorderSize(0); TLegendEntry *entry=leg1->AddEntry("NULL","(B=3.0 T, R_{TPC}= 1978 mm)",""); entry->SetLineColor(2); entry->SetLineStyle(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg1->AddEntry("NULL","(B=3.5 T, R_{TPC}= 1740 mm)",""); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg1->AddEntry("NULL","(B=4.0 T, R_{TPC}= 1540 mm)",""); entry->SetLineColor(4); entry->SetLineStyle(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(24); entry->SetMarkerSize(1.25); entry->SetTextAlign(12); entry->SetTextColor(1); leg1->Draw(); TLatex * tex = new TLatex(2,0.85,"b)"); // tex->SetTextFont(22); tex->SetTextSize(0.06); tex->SetLineWidth(2); tex->Draw(); cptdiff->Modified(); cptdiff->cd(); cptdiff->SetSelected(cptdiff); cptdiff->SaveAs("mgldratio.eps"); cptdiff->SaveAs("mgldratio.pdf"); cptdiff->SaveAs("mgldratio.gif"); }